package com.jk.bean;

/**
 * Created by Auser on 2016/11/11.
 */
public class Dish {
    private String name;

    private Integer calories;

    private DishType type;

    private boolean vegetarian;

    public Dish(){

    }

    public Dish(String name, boolean vegetarian, Integer calories, DishType type){
        this.name = name;
        this.vegetarian = vegetarian;
        this.calories = calories;
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getCalories() {
        return calories;
    }

    public void setCalories(Integer calories) {
        this.calories = calories;
    }

    public DishType getType() {
        return type;
    }

    public void setType(DishType type) {
        this.type = type;
    }

    public boolean isVegetarian() {
        return vegetarian;
    }

    public void setVegetarian(boolean vegetarian) {
        this.vegetarian = vegetarian;
    }

    @Override
    public String toString() {
        return "Dish{" +
                "name='" + name + '\'' +
                ", vegetarian=" + vegetarian + '\'' +
                ", type=" + type + '\'' +
                ", calories=" + calories +
                '}';
    }

    @Override
    public int hashCode(){
        return 1;
    }

    @Override
    public boolean equals(Object obj){
        return true;
    }
}
